import request from '@/utils/request'

// 查询流程配置信息
export function queryFlowConfigInfo(query) {
  return request({
    url: '/sora/projectFlow/getConfig',
    method: 'get',
    params: query
  })
}

// 初始化流程配置
export function initFlowConfig(data) {
  return request({
    url: '/sora/projectFlow/initConfig',
    method: 'post',
    data
  })
}

// 保存流程配置
export function saveFlowConfig(data) {
  return request({
    url: '/sora/projectFlow/saveConfig',
    method: 'post',
    data
  })
}

// 保存流程权限
export function saveFlowRole(data) {
  return request({
    url: '/sora/projectFlow/saveRole',
    method: 'post',
    data
  })
}

// 保存流程权限
export function delFlowRole(data) {
  return request({
    url: '/sora/projectFlow/delRole',
    method: 'post',
    data
  })
}

// 流程信息
export function getFlowInfo(query) {
  return request({
    url: '/sora/projectFlow/getInfo',
    method: 'get',
    params: query
  })
}

// 提交下一步
export function submitToNextStep(data) {
  return request({
    url: '/sora/projectFlow/submit',
    method: 'post',
    data
  })
}

// 获取流程整体信息
export function getFlowInitInfo(query) {
  return request({
    url: '/sora/projectFlow/initInfo',
    method: 'get',
    params: query
  })
}

// 运行评估计算|SAIL等级评估计算|毗连空域风险控制需求等级确定评估值计算
export function calculateValue(data){
  return request({
    url:'/sora/projectFlow/calValue',
    method:'post',
    data:data
  })
}